﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Domain.Repositories.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;
using youzackcom.EntityFrameworkCore;
using youzackcom.Model;

namespace youzackcom.Repository
{
    [Dependency(ServiceLifetime.Transient)]
    public class PermissionRepository : EfCoreRepository<youzackcomDbContext, Permission, int>, IPermissionRepository
    {
        public PermissionRepository(IDbContextProvider<youzackcomDbContext> dbContextProvider) : base(dbContextProvider)
        {

        }

        public override Task<Permission> InsertAsync(Permission entity, bool autoSave = false, CancellationToken cancellationToken = default)
        {
            return base.InsertAsync(entity, autoSave, cancellationToken);
        }
    }
}
